<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>
        我是王老师
    </p>
    <!-- <input type="text" value="王老师"> -->
    <br>
    <!-- <input type="button" value="提交" disabled="disabled"> -->
    <input type="checkbox" checked> 复选框
    <script>
        const ipt =document.querySelector('input')
        // console.log(ipt.value);

        const p =document.querySelector('p')
        console.log(p.innerHTML); //获取属性值

        // const btn =document.querySelector('input')
        // console.log(btn.disabled);
        
        // btn.disabled=true
        console.log(ipt.checked);
        ipt.checked
        
    </script>
</body>
</html>